import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/car_entity.dart';

CarEntity $CarEntityFromJson(Map<String, dynamic> json) {
  final CarEntity loginBeanEntity = CarEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }
  final String? carNo = jsonConvert.convert<String>(json['carNo']);
  if (carNo != null) {
    loginBeanEntity.carNo = carNo;
  }
  final String? carModel = jsonConvert.convert<String>(json['carModel']);
  if (carModel != null) {
    loginBeanEntity.carModel = carModel;
  }

  final String? carModelName = jsonConvert.convert<String>(json['carModelName']);
  if (carModelName != null) {
    loginBeanEntity.carModelName = carModelName;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $CarEntityToJson(CarEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['carNo'] = entity.carNo;
  data['carModel'] = entity.carModel;
  data['carModelName'] = entity.carModelName;
  return data;
}
